package gui.applets;

import java.applet.Applet;
import java.awt.Button;
import java.awt.Event;

public class AppletArguments extends Applet{
	Button btn1 = new Button("Button 1");
	Button btn2 = new Button("Button 2");

	public void init() {
		this.add(btn1);
		this.add(btn2);
	}

	public boolean action(Event evt, Object arg) {
		if (arg.equals("Button 1")) {
//			getAppletContext().showStatus("Button 1");
			showStatus("Button 1");
		} else if (arg.equals("Button 2")) {
			getAppletContext().showStatus("Button 2");
		} else
			return super.action(evt, arg);
		return true;

	}

}
